package com.shanzmoo.db.store.service.impl;

import cn.hutool.core.collection.CollUtil;
import com.shanzmoo.db.store.entity.StoreDeliveryBillDetailEntity;
import com.shanzmoo.db.store.entity.vo.StoreDeliveryBillDetailVO;
import com.shanzmoo.db.store.entity.query.StoreDeliveryBillDetailQuery;
import com.shanzmoo.db.store.mapper.StoreDeliveryBillDetailMapper;
import com.shanzmoo.db.store.service.IStoreDeliveryBillDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 仓库发货单明细 服务实现类
 *
 * @author Gzhao 2021-03-11
 */
@Service
public class StoreDeliveryBillDetailServiceImpl extends ServiceImpl<StoreDeliveryBillDetailMapper, StoreDeliveryBillDetailEntity>
        implements IStoreDeliveryBillDetailService {

    @Override
    public List<StoreDeliveryBillDetailVO> queryListByIds(List<Integer> billIds) {
        if (CollUtil.isEmpty(billIds)) {
            return Collections.emptyList();
        }
        return baseMapper.queryListByIds(billIds);
    }
}
